package com.mercury.ec.framework.air.core.client.impl.sunstn.dto.rtkt;

import com.mercury.ec.framework.air.core.client.impl.sunstn.jaxb.adapter.LocalEnglishDate2XmlAdapter;
import com.mercury.ec.framework.air.core.client.impl.sunstn.jaxb.adapter.TimeAddColon2XmlAdapter;
import lombok.Data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.time.LocalDate;

/**
 * SUNSTN RTKT航段 Response DTO
 *
 * @author hesx
 */
@Data
@XmlAccessorType(XmlAccessType.FIELD)
public class SunstnRtktRouteRespDTO {

    /**
     * 机场三字码
     */
    private String airport;

    /**
     * 航班号
     */
    private String flight_no;

    /**
     * 舱位
     */
    @XmlElement(name = "class")
    private String cabin;

    /**
     * 出发日期
     */
    @XmlJavaTypeAdapter(LocalEnglishDate2XmlAdapter.class)
    private LocalDate departure_date;

    /**
     * 出发时间
     */
    @XmlJavaTypeAdapter(TimeAddColon2XmlAdapter.class)
    private String departure_time;

    /**
     * 票价级别
     */
    private String farebasis;
}
